package com.kuang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: springboot-03-web
 * @description: 员工表
 * @author: 陈恩涛
 * @create: 2020-10-20 21:32
 **/

@Data
@NoArgsConstructor
public class Employee {

    //员工id
    private Integer id;

    //员工名字
    private String lastName;

    //邮箱
    private String email;

    //性别
    private Integer gender; //0:女   1：男

    //所属部门
    private Department department;

    //生日·
    private Date birth;

    public Employee(Integer id, String lastName, String email, Integer gender, Department department) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.department = department;
        //默认日期
        this.birth = new Date();
    }
}
